package com.sky.robot.frame.entity;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

public class TableEntity {

    private String id;

    private String tableName;

    private String beanName;

    private String beanParamName;

    private String comment;

    private List<FieldEntity> fieldEntities;

    /**
     * 索引
     */
    private Map<String, List<FieldEntity>> fieldEntityMap = new LinkedHashMap<>();

    /**
     * 是否需要转换时间类型
     */
    private Boolean hasDataTime;

    private Boolean hasBigDecimal;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getBeanName() {
        return beanName;
    }

    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    public String getBeanParamName() {
        return beanParamName;
    }

    public void setBeanParamName(String beanParamName) {
        this.beanParamName = beanParamName;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public List<FieldEntity> getFieldEntities() {
        return fieldEntities;
    }

    public void setFieldEntities(List<FieldEntity> fieldEntities) {
        this.fieldEntities = fieldEntities;
    }

    public Map<String, List<FieldEntity>> getFieldEntityMap() {
        return fieldEntityMap;
    }

    public void setFieldEntityMap(Map<String, List<FieldEntity>> fieldEntityMap) {
        this.fieldEntityMap = fieldEntityMap;
    }

    public Boolean getHasDataTime() {
        return hasDataTime;
    }

    public void setHasDataTime(Boolean hasDataTime) {
        this.hasDataTime = hasDataTime;
    }

    public Boolean getHasBigDecimal() {
        return hasBigDecimal;
    }

    public void setHasBigDecimal(Boolean hasBigDecimal) {
        this.hasBigDecimal = hasBigDecimal;
    }

    @Override
    public String toString() {
        return "TableEntity{" +
                "id='" + id + '\'' +
                ", tableName='" + tableName + '\'' +
                ", beanName='" + beanName + '\'' +
                ", beanParamName='" + beanParamName + '\'' +
                ", comment='" + comment + '\'' +
                ", fieldEntities=" + fieldEntities +
                ", fieldEntityMap=" + fieldEntityMap +
                ", hasDataTime=" + hasDataTime +
                ", hasBigDecimal=" + hasBigDecimal +
                '}';
    }
}
